mysql为我们提供了三种安装方式:二进制、rpm、源代码编译。这里我们详细讨论mysql的源代码编译安装方式。
在5.5版本之后,mysql不再提供configure编译方式,改为使用cmake编译工具,cmake工具的一个显著特点是其编译独立于源代码,即我们可以在源代码之外的目录使用cmake来编译mysql,如
[root@easy tmp]# ls -l | grep mysql...
分类:
数据库 时间:
2014-05-15 15:01:36
阅读次数:
494
有时候运行结果错误,但是vs没抛异常,这时可以用trycatch来帮我们捕捉异常。
例如:bug的情况是treeview只显示一个根节点和一个子节点,还不报错,我擦~
private void f_script_Load(object sender, EventArgs e)
{
List parents = new t_scriptsBLL().g...
分类:
其他好文 时间:
2014-05-15 07:06:00
阅读次数:
202
题意:判断一个链表中是否有环
思路:快慢指针,如果有环,最终快慢指针会在非NULL相遇
注:用到fast->next前先要确保fast非NULL,要用fast->next->next前先要确保fast,fast->next非NULL
复杂度:时间O(n), 空间O(1)
相关题目:Linked List CycleII...
分类:
其他好文 时间:
2014-05-15 07:01:57
阅读次数:
219
安装准备,安装依赖包。
yum install gcc
yum install make
yum install openssl-devel
yum install pcre-devel 下载Httpd 2.4.9
http://httpd.apache.org/download.cgi
下载Apr和Apr-util包
http://apr.apache.org/download...
分类:
其他好文 时间:
2014-05-15 06:59:18
阅读次数:
280
题意:从一个已排序的数组中移除掉重复的元素
思路:用下标i扫描旧数组,用下标j来保存新数组的尾部
如果旧数组的当前元素与新数组的最后一个元素相同,则继续扫描旧数组
如果不同,新数组的下标前移一们,将旧数组的当前元素赋给新数组,继续扫描旧数组
相关题目:
Remove Element
Remove Duplicates from Sorted List
Remove Duplicates from Sorted List II...
分类:
其他好文 时间:
2014-05-15 06:57:53
阅读次数:
249
【题目】
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.
Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)
Out...
分类:
其他好文 时间:
2014-05-15 05:13:49
阅读次数:
306
题目
Given a non-negative number represented as an array of digits, plus one to the number.
The digits are stored such that the most significant digit is at the head of the list.
解答
本题考察进位问题,注...
分类:
其他好文 时间:
2014-05-15 04:16:56
阅读次数:
245
在 O(nlogn)的时间内对一个链表进行排序。。明显是要用归并或者快排
第一次知道说原来归并也可以用链表来写,被刷了下三观。。。。。用快慢指针的方法找分界点。
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNod...
分类:
其他好文 时间:
2014-05-14 15:03:49
阅读次数:
230